package com.ruoyi.blsj.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 报告事件资料对象 blsj_bgsjzl
 * 
 * @author ruoyi
 * @date 2023-10-09
 */
public class BlsjBgsjzl extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 申请表id */
    @Excel(name = "申请表id")
    private Long workId;
    
    /** 表单单号类型 */
    @Excel(name = "主分类表单单号类型")
    private String pType;

    /** 表单单号类型 */
    @Excel(name = "表单单号类型")
    private String type;

    /** 申请单号 */
    @Excel(name = "申请单号")
    private String bgsjNo;

    /** 事件发生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "事件发生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sjfssj;

    /** 事发科室 */
    @Excel(name = "事发科室")
    private String sfks;

    /** 事件发生场所 */
    @Excel(name = "事件发生场所")
    private String sjfscs;

    /** 事件等级 */
    @Excel(name = "事件等级")
    private String sjdj;

    /** 事件严重程度 */
    @Excel(name = "事件严重程度")
    private String sjyzcd;

    /** 再次发生机会 */
    @Excel(name = "再次发生机会")
    private String zcfsjh;

    /** 事件风险度 */
    @Excel(name = "事件风险度")
    private String sjfxd;

    /** 是否关联人员 */
    @Excel(name = "是否关联人员")
    private String sfGlry;

    /** 是否医师 */
    @Excel(name = "是否医师")
    private String sfYs;

    /** 医师 */
    @Excel(name = "医师")
    private String ys;

    /** 是否护理人员 */
    @Excel(name = "是否护理人员")
    private String sfHlry;

    /** 护理人员 */
    @Excel(name = "护理人员")
    private String hlry;

    /** 是否药事人员 */
    @Excel(name = "是否药事人员")
    private String sfYsry;

    /** 药事人员 */
    @Excel(name = "药事人员")
    private String ysry;

    /** 是否营养科人员 */
    @Excel(name = "是否营养科人员")
    private String sfYykry;

    /** 营养科人员 */
    @Excel(name = "营养科人员")
    private String yykry;

    /** 是否检验人员 */
    @Excel(name = "是否检验人员")
    private String sfJyry;

    /** 检验人员 */
    @Excel(name = "检验人员")
    private String jyry;

    /** 是否物理治疗人员 */
    @Excel(name = "是否物理治疗人员")
    private String sfWlzlry;

    /** 物理治疗人员 */
    @Excel(name = "物理治疗人员")
    private String wlzlry;

    /** 是否放射技术人员 */
    @Excel(name = "是否放射技术人员")
    private String sfFsjsry;

    /** 放射技术人员 */
    @Excel(name = "放射技术人员")
    private String fsjsry;

    /** 是否行政人员 */
    @Excel(name = "是否行政人员")
    private String sfXzry;

    /** 行政人员 */
    @Excel(name = "行政人员")
    private String xzry;

    /** 行政人员其他 */
    @Excel(name = "行政人员其他")
    private String xzryQt;

    /** 是否院外支持人员 */
    @Excel(name = "是否院外支持人员")
    private String sfYwzcry;

    /** 院外支持人员 */
    @Excel(name = "院外支持人员")
    private String ywzcry;

    /** 院外支持人员其他 */
    @Excel(name = "院外支持人员其他")
    private String ywzcryQt;

    /** 是否管理人员其他说明 */
    @Excel(name = "是否管理人员其他说明")
    private String sfRyQt;

    /** 管理人员其他说明 */
    @Excel(name = "管理人员其他说明")
    private String ryQtSm;

    /** 是否医院职工 */
    @Excel(name = "是否医院职工")
    private String sfYyzg;

    /** 职工工号 */
    @Excel(name = "职工工号")
    private String zggh;

    /** 是否访客家属 */
    @Excel(name = "是否访客家属")
    private String sfFkjs;

    /** 访客家属 */
    @Excel(name = "访客家属")
    private String fkjs;

    /** 是否员工 */
    @Excel(name = "是否员工")
    private String sfYg;

    /** 员工 */
    @Excel(name = "员工")
    private String yg;

    /** 是否仪器设备 */
    @Excel(name = "是否仪器设备")
    private String sfYqsb;

    /** 仪器设备 */
    @Excel(name = "仪器设备")
    private String yqsb;

    /** 是否患者 */
    @Excel(name = "是否患者")
    private String sfHz;

    /** 事件发生经过 */
    @Excel(name = "事件发生经过")
    private String sjfsjg;
    
    @Excel(name = "事件进度")
    private String state;
    
    private List<String> list;

    public List<String> getList() {
		return list;
	}

	public void setList() {
		String[] arr = null;
		if(this.type!=null && !"".equals(this.type)){
			arr = this.type.split(",");
		}
		List<String> tmpList = new ArrayList<String>();
		for(int i=0;i<arr.length;i++){
			tmpList.add(arr[i]);
		}
		if(tmpList.size()==0){
			this.list = null;
		}else{
			this.list = tmpList;
		}
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWorkId(Long workId) 
    {
        this.workId = workId;
    }

    public Long getWorkId() 
    {
        return workId;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setBgsjNo(String bgsjNo) 
    {
        this.bgsjNo = bgsjNo;
    }

    public String getBgsjNo() 
    {
        return bgsjNo;
    }
    public void setSjfssj(Date sjfssj) 
    {
        this.sjfssj = sjfssj;
    }

    public Date getSjfssj() 
    {
        return sjfssj;
    }
    public void setSfks(String sfks) 
    {
        this.sfks = sfks;
    }

    public String getSfks() 
    {
        return sfks;
    }
    public void setSjfscs(String sjfscs) 
    {
        this.sjfscs = sjfscs;
    }

    public String getSjfscs() 
    {
        return sjfscs;
    }
    public void setSjdj(String sjdj) 
    {
        this.sjdj = sjdj;
    }

    public String getSjdj() 
    {
        return sjdj;
    }
    public void setSjyzcd(String sjyzcd) 
    {
        this.sjyzcd = sjyzcd;
    }

    public String getSjyzcd() 
    {
        return sjyzcd;
    }
    public void setZcfsjh(String zcfsjh) 
    {
        this.zcfsjh = zcfsjh;
    }

    public String getZcfsjh() 
    {
        return zcfsjh;
    }
    public void setSjfxd(String sjfxd) 
    {
        this.sjfxd = sjfxd;
    }

    public String getSjfxd() 
    {
        return sjfxd;
    }
    public void setSfGlry(String sfGlry) 
    {
        this.sfGlry = sfGlry;
    }

    public String getSfGlry() 
    {
        return sfGlry;
    }
    public void setSfYs(String sfYs) 
    {
        this.sfYs = sfYs;
    }

    public String getSfYs() 
    {
        return sfYs;
    }
    public void setYs(String ys) 
    {
        this.ys = ys;
    }

    public String getYs() 
    {
        return ys;
    }
    public void setSfHlry(String sfHlry) 
    {
        this.sfHlry = sfHlry;
    }

    public String getSfHlry() 
    {
        return sfHlry;
    }
    public void setHlry(String hlry) 
    {
        this.hlry = hlry;
    }

    public String getHlry() 
    {
        return hlry;
    }
    public void setSfYsry(String sfYsry) 
    {
        this.sfYsry = sfYsry;
    }

    public String getSfYsry() 
    {
        return sfYsry;
    }
    public void setYsry(String ysry) 
    {
        this.ysry = ysry;
    }

    public String getYsry() 
    {
        return ysry;
    }
    public void setSfYykry(String sfYykry) 
    {
        this.sfYykry = sfYykry;
    }

    public String getSfYykry() 
    {
        return sfYykry;
    }
    public void setYykry(String yykry) 
    {
        this.yykry = yykry;
    }

    public String getYykry() 
    {
        return yykry;
    }
    public void setSfJyry(String sfJyry) 
    {
        this.sfJyry = sfJyry;
    }

    public String getSfJyry() 
    {
        return sfJyry;
    }
    public void setJyry(String jyry) 
    {
        this.jyry = jyry;
    }

    public String getJyry() 
    {
        return jyry;
    }
    public void setSfWlzlry(String sfWlzlry) 
    {
        this.sfWlzlry = sfWlzlry;
    }

    public String getSfWlzlry() 
    {
        return sfWlzlry;
    }
    public void setWlzlry(String wlzlry) 
    {
        this.wlzlry = wlzlry;
    }

    public String getWlzlry() 
    {
        return wlzlry;
    }
    public void setSfFsjsry(String sfFsjsry) 
    {
        this.sfFsjsry = sfFsjsry;
    }

    public String getSfFsjsry() 
    {
        return sfFsjsry;
    }
    public void setFsjsry(String fsjsry) 
    {
        this.fsjsry = fsjsry;
    }

    public String getFsjsry() 
    {
        return fsjsry;
    }
    public void setSfXzry(String sfXzry) 
    {
        this.sfXzry = sfXzry;
    }

    public String getSfXzry() 
    {
        return sfXzry;
    }
    public void setXzry(String xzry) 
    {
        this.xzry = xzry;
    }

    public String getXzry() 
    {
        return xzry;
    }
    public void setXzryQt(String xzryQt) 
    {
        this.xzryQt = xzryQt;
    }

    public String getXzryQt() 
    {
        return xzryQt;
    }
    public void setSfYwzcry(String sfYwzcry) 
    {
        this.sfYwzcry = sfYwzcry;
    }

    public String getSfYwzcry() 
    {
        return sfYwzcry;
    }
    public void setYwzcry(String ywzcry) 
    {
        this.ywzcry = ywzcry;
    }

    public String getYwzcry() 
    {
        return ywzcry;
    }
    public void setYwzcryQt(String ywzcryQt) 
    {
        this.ywzcryQt = ywzcryQt;
    }

    public String getYwzcryQt() 
    {
        return ywzcryQt;
    }
    public void setSfRyQt(String sfRyQt) 
    {
        this.sfRyQt = sfRyQt;
    }

    public String getSfRyQt() 
    {
        return sfRyQt;
    }
    public void setRyQtSm(String ryQtSm) 
    {
        this.ryQtSm = ryQtSm;
    }

    public String getRyQtSm() 
    {
        return ryQtSm;
    }
    public void setSfYyzg(String sfYyzg) 
    {
        this.sfYyzg = sfYyzg;
    }

    public String getSfYyzg() 
    {
        return sfYyzg;
    }
    public void setZggh(String zggh) 
    {
        this.zggh = zggh;
    }

    public String getZggh() 
    {
        return zggh;
    }
    public void setSfFkjs(String sfFkjs) 
    {
        this.sfFkjs = sfFkjs;
    }

    public String getSfFkjs() 
    {
        return sfFkjs;
    }
    public void setFkjs(String fkjs) 
    {
        this.fkjs = fkjs;
    }

    public String getFkjs() 
    {
        return fkjs;
    }
    public void setSfYg(String sfYg) 
    {
        this.sfYg = sfYg;
    }

    public String getSfYg() 
    {
        return sfYg;
    }
    public void setYg(String yg) 
    {
        this.yg = yg;
    }

    public String getYg() 
    {
        return yg;
    }
    public void setSfYqsb(String sfYqsb) 
    {
        this.sfYqsb = sfYqsb;
    }

    public String getSfYqsb() 
    {
        return sfYqsb;
    }
    public void setYqsb(String yqsb) 
    {
        this.yqsb = yqsb;
    }

    public String getYqsb() 
    {
        return yqsb;
    }
    public void setSfHz(String sfHz) 
    {
        this.sfHz = sfHz;
    }

    public String getSfHz() 
    {
        return sfHz;
    }
    public void setSjfsjg(String sjfsjg) 
    {
        this.sjfsjg = sjfsjg;
    }

    public String getSjfsjg() 
    {
        return sjfsjg;
    }

    public String getpType() {
		return pType;
	}

	public void setpType(String pType) {
		this.pType = pType;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("workId", getWorkId())
            .append("type", getType())
            .append("bgsjNo", getBgsjNo())
            .append("sjfssj", getSjfssj())
            .append("sfks", getSfks())
            .append("sjfscs", getSjfscs())
            .append("sjdj", getSjdj())
            .append("sjyzcd", getSjyzcd())
            .append("zcfsjh", getZcfsjh())
            .append("sjfxd", getSjfxd())
            .append("sfGlry", getSfGlry())
            .append("sfYs", getSfYs())
            .append("ys", getYs())
            .append("sfHlry", getSfHlry())
            .append("hlry", getHlry())
            .append("sfYsry", getSfYsry())
            .append("ysry", getYsry())
            .append("sfYykry", getSfYykry())
            .append("yykry", getYykry())
            .append("sfJyry", getSfJyry())
            .append("jyry", getJyry())
            .append("sfWlzlry", getSfWlzlry())
            .append("wlzlry", getWlzlry())
            .append("sfFsjsry", getSfFsjsry())
            .append("fsjsry", getFsjsry())
            .append("sfXzry", getSfXzry())
            .append("xzry", getXzry())
            .append("xzryQt", getXzryQt())
            .append("sfYwzcry", getSfYwzcry())
            .append("ywzcry", getYwzcry())
            .append("ywzcryQt", getYwzcryQt())
            .append("sfRyQt", getSfRyQt())
            .append("ryQtSm", getRyQtSm())
            .append("sfYyzg", getSfYyzg())
            .append("zggh", getZggh())
            .append("sfFkjs", getSfFkjs())
            .append("fkjs", getFkjs())
            .append("sfYg", getSfYg())
            .append("yg", getYg())
            .append("sfYqsb", getSfYqsb())
            .append("yqsb", getYqsb())
            .append("sfHz", getSfHz())
            .append("sjfsjg", getSjfsjg())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .toString();
    }
}
